package com.question.pojo.vo;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.question.pojo.entity.QuestionBlanks;
import com.question.pojo.entity.QuestionCategories;
import com.question.pojo.entity.QuestionChoices;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.List;

@TableName("questions")
@Data
public class UserQuestionVO implements Serializable {

    @TableId(value = "question_id")
    private Integer questionId;

    private String questionType; //
    private String content;
    private String answer;
    private Integer maxLength;
    private Integer baseScore;
    private Double weight;
    private LocalDateTime createdAt;
    private Integer createdBy;
    private Integer majorId;
    private Integer categoryId;

    //
    private QuestionCategories questionCategories;
    private QuestionBlanks questionBlanks;
    private List<QuestionChoices> questionChoicesList;
    private String majorName;
    private String categoryName;

    private Boolean isCollected; //题目是否被收藏
    private Integer answerTotal;
    private String correctRate;

}